{include file="inc/header.html"} 
<?php
$this->_var['storeojs'][] = $this->_var['TMPL_REAL']."/js/store.js";
$this->_var['storeojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.core.js";
$this->_var['storeojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.widget.js";
$this->_var['storeojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.datepicker.js";

$this->_var['cpstoreojs'][] = $this->_var['TMPL_REAL']."/js/store.js";
$this->_var['cpstoreojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.core.js";
$this->_var['cpstoreojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.widget.js";
$this->_var['cpstoreojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.datepicker.js";

$this->_var['storeocss'][] = $this->_var['TMPL_REAL']."/css/store.css";
$this->_var['storeocss'][] = $this->_var['TMPL_REAL']."/css/datepicker.css";
?>

<script type="text/javascript" src="{function name="parse_script" v="$storeojs" c="$cpstoreojs"}"></script>
<link rel="stylesheet" type="text/css" href="{function name="parse_css" v="$storeocss"}" />
<script type="text/javascript">
	var is_order_show = true;
	var store_id="{$order.sid}";
	var seatStatus = "{$order.seat_status}";
	var minExpense = "{$order.min_expense}";
	var seatSwitch = "{$order.seat_switch}";
	var deal_type =  {$order.deal_type};
</script>
<div class="blank"></div>
<div class="res_proc_bg">
	<div class="res_proc_bd">
    	<div class="res_proc_on" style="width:66.7%;">
        	<div class="res_proc_r"></div>
        </div>
    </div>
</div>
<div class="f14 c4c">
	<span class="abs">进度：[第2/3步]</span>
    <ul class="fix tr">
    	<li class="float_three">1. {if $order.deal_type eq 1}KTV{else}餐厅{/if}首页</li>
        <li class="float_three cg b">2. 填写订单</li>
        <li class="float_three">3. 确认订单</li>
    </ul>
</div>
<div class="blank"></div>
<div class="wrap clearfix wb">
	<div class="store-order">
		<h1><a href="{url x="store" r="view" p="id=$order.sid"}">{$order.location_name}</a></h1>
		<div class="sorder-tip">
			当您在按下「我同意并提交」按钮时，则表示您已阅读并同意<a href="">订餐小秘书服务条款</a>
		</div>
		<div class="blank"></div>
		<form action="{url x="store" r="order#update"}" method="post" name="STORE-ORDER-MODIFY-FORM" id="STORE-ORDER-MODIFY-FORM">
		<div class="btd res_ord_fill_box">
	            <span class="char_corr abs cg">◆</span>
	            <span class="char_corr abs wh ml-3">◆</span>
	            <h5 class="pl10 cg mt-1">预订信息</h5>
				<div class="filed clearfix">
					<div class="f_left"><span class="red">*</span> {if $order['deal_type'] eq 1}K歌{else}就餐{/if}时间</div>
					<div class="f_right">
						<input type="text" class="f-input" readonly="readonly" size="21" id="orderDate" name="orderDate" placeholder="----年--月--日" value="{function name="to_date" v="$order.order_time" f="Y年m月d日"}{$week}" />
						<input type="text" class="f-input" readonly="readonly" size="5"  id="orderHour" name="orderHour" placeholder="--时" value="{function name="to_date" v="$order.order_time" f="H"}点" />
						<input type="text" class="f-input" readonly="readonly" size="5" id="orderMini" name="orderMini" placeholder="--分" value="{function name="to_date" v="$order.order_time" f="i"}分" />
					</div>
					<div class="blank5"></div>
					<div class="f_left"><span class="red">*</span> 人数</div>
					<div class="f_right">
						<input type="text" class="f-input" size="5" id="orderNums" name="orderNums" placeholder="--人" value="{$order.order_nums}">
					</div>
					<div class="blank5"></div>
					<div class="f_left"><span class="red">*</span> {if $order['deal_type'] eq 1}包厢{else}餐位{/if}情况</div>
					<div class="f_right">
						<div class="clearfix" id="seatStatusAjaxBox"></div>
						<div class="blank5"></div>
						<div style="color:red;font-size:12px" id="seatStatusAjaxTip">因{if $order['deal_type'] eq 1}包厢{else}餐位{/if}变化较快，一切以最终预订结果为准。</div>
					</div>
				</div>
         </div>
		 <div class="btd res_ord_fill_box">
	            <span class="char_corr abs cg">◆</span>
	            <span class="char_corr abs wh ml-3">◆</span>
				<h5 class="pl10 cg mt-1">联系人信息</h5>
				<div class="filed clearfix">
					<div class="f_left"><span class="red">*</span> 手机号</div>
					<div class="f_right">
						<input type="text" class="f-input" size="11" id="orderMyTel" name="orderMyTel" value="{$order.order_tel}">
					</div>
				</div>
				<div class="blank5"></div>
				<div class="filed clearfix">
					<div class="f_left"><span class="red">*</span> 姓名</div>
					<div class="f_right">
						<input type="text" class="f-input" size="8" id="orderMyName" name="orderMyName" value="{$order.order_name}">
						<span class="g9 ml10">建议您留下真实姓名，便于我们更好地为您服务</span>
					</div>
				</div>
				<div class="blank5"></div>
				<div class="filed clearfix">
					<div class="f_left"><span class="red">*</span> 性别</div>
					<div class="f_right">
						<label><input type="radio" class="f-radio orderSex" name="orderSex" {if $order.order_sex eq 1}checked="checked" {/if}value="1" />先生</label>
						<label><input type="radio" class="f-radio orderSex" name="orderSex" {if $order.order_sex eq 0}checked="checked" {/if}value="0" />女士</label>
					</div>
				</div>
				<div class="blank5"></div>
				<div class="filed clearfix">
					<div class="f_left">&nbsp;</div>
					<div class="f_right">
						<input type="checkbox" id="orderForOther" {if $order.order_other_tel neq '' || $order.order_other_name neq ''}checked="checked" {/if}class="f-check" rel="orderOthers">
						<span class="g9">(为他人{if $order['deal_type'] eq 1}预订{else}订餐{/if}，秘币都赚进自己口袋哦)</span>
					</div>
				</div>
				<div class="clearfix {if $order.order_other_tel eq '' && $order.order_other_name eq ''}hide{/if}" id="orderOtherBox">
					<div class="blank5"></div>
					<div class="blank5"></div>
					<div class="filed clearfix">
						<div class="f_left"><span class="red">*</span> 手机号</div>
						<div class="f_right">
							<input type="text" class="f-input" size="11" id="orderOtherTel" name="orderOtherTel" value="{$order.order_other_tel}">
						</div>
					</div>
					<div class="blank5"></div>
					<div class="filed clearfix">
						<div class="f_left"><span class="red">*</span> 姓名</div>
						<div class="f_right">
							<input type="text" class="f-input" size="8" id="orderOtherName" name="orderOtherName" value="{$order.order_other_name}">
							<span class="g9 ml10">建议您留下真实姓名，便于我们更好地为您服务</span>
						</div>
					</div>
					<div class="blank5"></div>
					<div class="filed clearfix">
						<div class="f_left"><span class="red">*</span> 性别</div>
						<div class="f_right">
							<label><input type="radio" class="f-radio orderOtherSex" name="orderOtherSex" value="1" {if $order.order_other_sex eq 1}checked="checked" {/if} />先生</label>
							<label><input type="radio" class="f-radio orderOtherSex" name="orderOtherSex" value="0" {if $order.order_other_sex eq 0}checked="checked" {/if} />女士</label>
							<label><input type="radio" class="f-radio orderOtherSex" name="orderOtherSex" value="2" {if $order.order_other_sex eq 2}checked="checked" {/if} />公司</label>
						</div>
					</div>
				</div>
		 </div>
		  <div class="btd res_ord_fill_box">
	            <span class="char_corr abs cg">◆</span>
	            <span class="char_corr abs wh ml-3">◆</span>
				<h5 class="pl10 cg mt-1">给商户留言（您还有什么要求，请写在下面）</h5>
				<div class="filed clearfix">
					<div class="blank"></div>
					<div class="clearfix res-msg-box">
						{if $order.no_smoking eq 1}
						<div class="blank"></div>
						<label><input type="radio" class="f-radio" name="extraServe" value="1" {if $order.extra_serve eq 1}checked="checked" {/if}/>吸烟区</label>
						<label><input type="radio" class="f-radio" name="extraServe" value="2" {if $order.extra_serve eq 2}checked="checked" {/if}/>无烟区</label>
						{/if}
						<div class="blank1"></div>
						<span class="char_cort ml10">◆</span>
						<div class="res_ord_fill_msg bgeb">
	                    	<div class="bdc bgwh">
	                        	<div class="bteb p5 z">
	                        		{if $order.deal_type eq 1}
									<textarea id="orderReqArea" name="orderReqArea" class="res_ord_fill_area g9" placeholder="{$LANG.store_order_ktv_tip}">{if $order.order_msg}{$order.order_msg}{else}{$LANG.store_order_ktv_tip}{/if}</textarea>
									{else}
	                        		<textarea id="orderReqArea" name="orderReqArea" class="res_ord_fill_area g9" placeholder="{$LANG.store_order_tip}">{if $order.order_msg}{$order.order_msg}{else}{$LANG.store_order_tip}{/if}</textarea>
									{/if}
	                        	</div>
	                        </div>
	                    </div>
						<div class="blank"></div>
						<div class="blank"></div>
						<div class="clearfix">
							<div class="grebtn">
								<i class="green_line"></i>
								<strong class="grebtn_in">
									<a href="javascript:void(0);" id="bookStepModifySubmit" class="grebtn_bg">我同意并提交</a>
								</strong>
								<i class="green_line"></i>
							</div>
						</div>
					</div>
				</div>
		 </div>
		  <input type="hidden" name="id" id="id" value="{$order.id}" />
		  <input type="hidden" name="sid" id="sid" value="{$order.sid}" />
		 </form>
	</div>
</div>
<div class="fw-date-box abs" id="FW-DATE-BOX"></div>
{include file="inc/footer.html"}